<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>第2步 - 安装 Verydows</title>
<link rel="stylesheet" type="text/css" href="template/style.css" />
<style type="text/css">
.main {padding:10px 15px 20px 15px;line-height:180%;border:1px solid #d5d5d5;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;}
.infotable h2 {text-align:center;font-size:14px;color:#006666;padding:5px 0;}
.infotable table {border-collapse:collapse}
.infotable table th, .infotable table td {padding:5px 8px;border:1px solid #e5e5e5;}
.infotable table th {color:#666;text-align:right;}
.infotable table td {color:#555;text-align:left;}
.infotable .dirtable th {text-align:center}
.infotable .dirtable th.left {text-align:left}
.infotable .dirtable td.center {text-align:center;}
</style>
</head>
<body>
<!-- header start -->
<?php include('template'.DS.'header.html') ?>
<!-- header end -->
<!-- container start -->
<div class="container mt20">
  <?php include('template'.DS.'progressbar.html') ?>
  <div class="mt40 main cut">
    <div class="infotable mt10">
      <div class="module">
        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr><th colspan="2"><h2>检测服务器运行环境</h2></th></tr>
          <tr>
            <th width="160">操作系统 :</th>
            <td><?php echo PHP_OS ?></td>
          </tr>
          <tr>
            <th>Web服务器 :</th>
            <td><?php echo $_SERVER['SERVER_SOFTWARE'] ?></td>
          </tr>
          <tr>
            <th>PHP 版本 :</th>
            <td><?php echo $check_envir['php'] ?></td>
          </tr>
          <tr>
            <th>PDO 扩展 :</th>
            <td><?php echo $check_envir['pdo'] ?></td>
          </tr>
          <tr>
            <th>文件上传 :</th>
            <td><?php echo $check_envir['upload'] ?></td>
          </tr>
          <tr>
            <th>file_get_contents :</th>
            <td><?php echo $check_envir['file_get_contents'] ?></td>
          </tr>
          <tr>
            <th>fsockopen :</th>
            <td><?php echo $check_envir['fsockopen'] ?></td>
          </tr>
          <tr>
            <th>cURL :</th>
            <td><?php echo $check_envir['cURL'] ?></td>
          </tr>
          <tr>
            <th>GD 库:</th>
            <td><?php echo $check_envir['gd'] ?></td>
          </tr>
        </table>
      </div>
      <div class="module mt10">
        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="dirtable">
          <tr>
            <th colspan="3"><h2 style="text-align:center;font-size:14px;">检查目录权限</h2></th>
          </tr>
          <tr>
            <th class="left">目录名称</th>
            <th width="30%" class="center">可读</th>
            <th width="30%" class="center">可写</th>
          </tr>
          <?php foreach($check_dirs as $item){ ?>
          <tr>
            <td><?php echo $item['dir'] ?></td>
            <td class="center"><?php echo $item['read'] ?></td>
            <td class="center"><?php echo $item['write'] ?></td>
          </tr>
          <?php } ?>
        </table>
      </div>
    </div>
  </div>
  <?php if($check_envir['disable'] == 0){ ?>
  <div class="mt30 ta-c"><a class="sbtn btn" href="index.php?step=3">下一步</a></div>
  <?php }else{ ?>
  <div class="mt30 f14 red ta-c">缺少必要的服务器环境支持，无法继续安装</div>.
  <div class="mt5 ta-c"><a class="sbtn disabled btn">下一步</a></div>
  <?php } ?>
  
</div>
<!-- container end -->
</body>
</html>
